<?php /* Smarty version Smarty-3.1.21, created on 2015-06-01 08:43:29
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\search\index.html" */ ?>
<?php /*%%SmartyHeaderCode:147075569d3f11610b6-37987409%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '99f307cc742115b3590a87bfbfe8c8354f1eca2c' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\search\\index.html',
      1 => 1433119404,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '147075569d3f11610b6-37987409',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_5569d3f1345722_26148316',
  'variables' => 
  array (
    'words' => 0,
    'searchResult' => 0,
    'result' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5569d3f1345722_26148316')) {function content_5569d3f1345722_26148316($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_substr')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.substr.php';
if (!is_callable('smarty_modifier_date_format')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title><?php echo $_smarty_tpl->tpl_vars['words']->value;?>
</title>
	<meta name="keywords" content="<?php echo $_smarty_tpl->tpl_vars['words']->value;?>
"/>
	<meta name="description" content="<?php echo $_smarty_tpl->tpl_vars['words']->value;?>
"/>
	<?php echo '<script'; ?>
>
		var APP = '<?php echo @constant('__APP__');?>
';

	<?php echo '</script'; ?>
>
	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/common.css" />
	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/index.css" />
	<?php echo '<script'; ?>
 type="text/javascript" src='<?php echo @constant('__PUBLIC__');?>
/Js/jquery-1.7.2.min.js'><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/Js/search.js"><?php echo '</script'; ?>
>
	<style>
		#search_box{
			display:none;font-size:18px;text-align:left;padding:10px;position:absolute;top:88px;left:20px;width:516px;border:1px solid #3EAF0E;z-index:500;background:white;
		}
		#search_box li{
			cursor: default;
		}
		#search_box li:hover{
			border-bottom:1px dashed black;
		}
		#search_box span{
			float:right;font-size:14px;color:#999;font-style: italic;"
		}
	</style>
</head>
<body>
	<!-- 搜索顶部 -->
	<div class="search_top">
		<div class="sealeft">
			<a href=""><img src="<?php echo @constant('__PUBLIC__');?>
/images/t0150f9b7bd1b41d84e.png" alt="" /></a>
		</div>

	</div>
	<!-- 搜索顶部结束 -->
	<!-- 搜索框 -->
	<div class="search_box" style="display:relative;">
		<form autocomplete="off" action="<?php echo @constant('__APP__');?>
?c=search" method="POST">
			<input type="text" value="<?php echo $_smarty_tpl->tpl_vars['words']->value;?>
" autocomplete="false" name="words" class="searchInput sech-cons"/>
			<input type="submit" value="搜索答案" class="sub"/>
		</form>
		<a href="<?php echo @constant('__APP__');?>
?c=ask">我要提问</a>
		<div id="search_box">
			<ul>

			</ul>
		</div>
	</div>
	
	
	<!-- 搜索框结束 -->
	<!-- 搜索内容 -->
	<div class="searcont">
		<?php if (count($_smarty_tpl->tpl_vars['searchResult']->value)==0) {?>
			<h1>对不起没有搜索到您想要的内容 V_V <a href="<?php echo @constant('__APP__');?>
">点击返回首页</a></h1>
			<?php } else { ?>
			<?php  $_smarty_tpl->tpl_vars['result'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['result']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['searchResult']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['result']->key => $_smarty_tpl->tpl_vars['result']->value) {
$_smarty_tpl->tpl_vars['result']->_loop = true;
?>
				<ul>
					<li> <a href="<?php echo @constant('__APP__');?>
?c=show&asid=<?php echo $_smarty_tpl->tpl_vars['result']->value['asid'];?>
" class="title"><?php echo smarty_modifier_substr($_smarty_tpl->tpl_vars['result']->value['content'],40);?>
</a></li>
					<li><?php echo smarty_modifier_substr($_smarty_tpl->tpl_vars['result']->value['content'],200);?>
</li>
					<li class="time"><span><?php echo $_smarty_tpl->tpl_vars['result']->value['title'];?>
 - <?php echo $_smarty_tpl->tpl_vars['result']->value['answer'];?>
个回答</span> - 提问时间: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['result']->value['time'],"%Y-%m-%d");?>
</li>
				</ul>
			<?php } ?>
		<?php }?>
		
	</div>
	<!-- 搜索内容结束 -->

<!-- 底部 -->
	<?php echo $_smarty_tpl->getSubTemplate ("../Common/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--[if IE 6]>
    <?php echo '<script'; ?>
 type="text/javascript" src="./Js/iepng.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    <?php echo '</script'; ?>
>
<![endif]-->
</body>
</html>
<!-- 底部结束 --><?php }} ?>
